export const rules = {
    required:{
        test(val){
            return (val  && (val + "").trim().length > 0) || val === false || val === 0
        },
        message: "该项是必填项"
    },
    email:{
        test: /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
        message: "请输入正确的邮箱格式"
    },
    mobile:{
        test: /^1[3456789]\d{9}$/,
        message: "请输入正确的手机号码格式"
    }
}